package com.jh3502.vivo.function.login;

import android.content.Context;

import com.jh3502.vivo.base.BaseJson;
import com.jh3502.vivo.base.BaseModel;
import com.jh3502.vivo.net.ApiClient;

import java.util.Map;

import retrofit2.Callback;

/**
 * @author harisucici
 * @date 2017/6/19
 */

public class LoginModel extends BaseModel {

    public LoginModel(Context context) {
        super(context);
    }

    //登录
    public void login(Map<String, Object> body, Callback<BaseJson> callback) {
        mCall = ApiClient.apiList.login(body);
        mCall.enqueue(callback);
    }
}
